package com.gouwudai.gobbs.dao;

import java.util.List;

import com.gouwudai.gobbs.common.IPageList;
import com.gouwudai.gobbs.pojo.TbbsMessage;
import com.litt.core.exception.DBException;

/**
 * <pre>
 *  Title:TODO
 *  Description: TODO  
 * </pre>
 * 
 * @author <a href="mailto:littcai@hotmail.com">空心大白菜</a>
 * @date 2007-3-29
 * @version 1.0
 * <pre>
 * 修改记录
 *    修改后版本:     修改人：  修改日期:     修改内容: 
 * </pre>
 */
public interface IMessageDAO {

	public void save(TbbsMessage tbbsMessage);

	public TbbsMessage load(Integer id);

	public void update(TbbsMessage tbbsMessage);

	public void send(Integer messageId);

	public void delete(String messageIds);

	/**
	 * 草稿箱
	 * @param cond
	 * @param pageIndex
	 * @param pageSize
	 * @param sort
	 * @return
	 * @throws DBException
	 */
	public IPageList listDraft(String loginId, int pageIndex, int pageSize);

	/**
	 * 发件箱
	 * @param cond
	 * @param pageIndex
	 * @param pageSize
	 * @param sort
	 * @return
	 * @throws DBException
	 */
	public IPageList listSend(String loginId, int pageIndex, int pageSize);

	/**
	 * 收件箱
	 * @param cond
	 * @param pageIndex
	 * @param pageSize
	 * @param sort
	 * @return
	 * @throws DBException
	 */
	public IPageList listTake(String loginId, int pageIndex, int pageSize);

	/**
	 * 查询当前登陆用户未读短信
	 * @param loginId
	 * @return
	 * @throws DBException
	 */
	public List listNew(String loginId);

}